package com.woniuxy.microsysserver.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: masterhai
 * @date: 2021/2/20:17:08
 * @description:轮播图实体类
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SlideShow implements Serializable {
    private static final long serialVersionUID = 4718906675806101504L;
    //轮播图id
    private int id;
    //图片名称
    private String name;
    //图片链接地址
    private String pic;
    //上传时间
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //轮播图描述
    private String descrption;
    //图片状态编码,1表示正常显示,2表示处于回收站,3表示永久删除
    private int status;

}
